import request from "../utils/request.js";
import config from "../config/configAll.js";
import { getToken } from "@/utils/auth.js";

export const api = {
  upload: {
    upload(data = {}) {
      return request({
        url: "/common/upload",
        method: "post",
        data,
      });
    },
  },
  region: {
    regionList(data = {}) {
      return request({
        url: "/region/list",
        method: "get",
        data,
      });
    },
    orderLsit(data = {}) {
      return request({
        url: "/goods/order/list",
        method: "get",
        data,
        // platgroup: true,
      });
    },
  },  
};
